favorite_languages = {'jen': 'python',
                      'sarah': 'c',
                      'edward': 'ruby',
                      'phil': 'python',
                      }
name_labguages = ['jen','phil']
for name in favorite_languages.keys():
    if name in name_labguages:
        print("Thank you!"+name.title())
    else:
        print("We invite you! "+name.title())